package Service;

import Mapper.UserMapper;

import java.sql.SQLException;

public class UserService {
    private UserMapper  userMapper = new UserMapper();
    public  boolean  login(String username , String password) throws SQLException {
       return userMapper.login(username, password);
    }
    public int getUserIdByusername(String username) throws SQLException {
       return userMapper.getUseridByUsername(username);
    }


}
